package com.shushan.versionupdate.download;


import com.shushan.versionupdate.entity.ThreadBean;

/**
 * Description:下载进度回调
 */
public interface DownloadCallBack {
    /**
     * 暂停回调
     * @param threadBean
     */
    void pauseCallBack(ThreadBean threadBean);
    /**
     * 停止下载回调
     * @param threadBean
     */
    void closeCallBack(ThreadBean threadBean);
    /**
     * 下载进度
     * @param length
     */
    void progressCallBack(int length);

    /**
     * 线程下载完毕
     * @param threadBean
     */
    void threadDownLoadFinished(ThreadBean threadBean);
}
